package com.sylli.oeuf.server.object.transferable;

public class AccountTO extends BasedTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1128210726963705028L;

	private int accountId;
	
	private String username;
	
	private String password;
	
	private String email;
	
	private int flag;
	
	@Override
	public String toString() {
		return "AccountTO: account_id=" + accountId
			+ ", username=" + username
			+ ", password=" + password
			+ ", email=" + email
			+ ", flag=" + flag;
	}
	
	@Override
	public boolean equals(Object o) {
		if (o instanceof AccountTO) {
			AccountTO a = (AccountTO) o;
			return a.accountId == accountId
				&& a.username.equals(username)
				&& a.password.equals(password)
				&& a.email.equals(email)
				&& a.flag == flag;
		}
		return false;
	}

	public int getAccountId() {
		return accountId;
	}

	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}
	
	
}
